//
//  AXFMineSever.m
//  AIXF
//
//  Created by zhanghui on 2017/7/9.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFMineSever.h"

@implementation AXFMineSever

#pragma mark - 我的优惠卷网络接口
- (void)requestMineMyCouponWith:(void (^)(id))sussBLock andFailBlock:(void (^)(NSError *))faliBlock{
    
    
    self.url = @"MyCoupon.json.php";
    self.call = @"9";
    
    [super requestWithSussBlock:^(id response) {
        
        if (sussBLock) sussBLock(response);
        
    } andFailBlock:^(NSError *error) {
        
        if (faliBlock) faliBlock(error);
        
    }];

}

#pragma mark - 用户消息接口
- (void)requestUserMessageWith:(void (^)(id))sussBLock andFailBlock:(void (^)(NSError *))faliBlock{
    
    
    
    self.url = @"UserMessage.json.php";
    self.call = @"11";
    
    [super requestWithSussBlock:^(id response) {
        
        if (sussBLock) sussBLock(response);
        
    } andFailBlock:^(NSError *error) {
        
        if (faliBlock) faliBlock(error);
        
    }];
   

    
}

#pragma mark - 系统消息网络接口
- (void)requestSystemMessageWith:(void (^)(id))sussBLock andFailBlock:(void (^)(NSError *))faliBlock{
    
    
    self.url = @"SystemMessage.json.php";
    self.call = @"10";
    
    [super requestWithSussBlock:^(id response) {
        
        if (sussBLock) sussBLock(response);
        
    } andFailBlock:^(NSError *error) {
        
        if (faliBlock) faliBlock(error);
        
    }];
}

@end
